package cn.tedu.review;
/**本类用于回顾抽象*/
public class TestAbstract {
    public static void main(String[] args) {
        CGBTeacher c = new CGBTeacher();
    }
}
abstract class Teacher{
    public abstract void ready();
    public abstract void teach();
    public void eat(){
        System.out.println("人是铁，饭是钢");
    }
    public Teacher(){
        System.out.println("父类构造方法");
    }
}
class CGBTeacher extends Teacher{
    public CGBTeacher(){
        System.out.println("子类构造方法");
    }

    @Override
    public void ready() {
        System.out.println("正在备课CGB");
    }

    @Override
    public void teach() {
        System.out.println("正在授课CGB");
    }
}
abstract class ACTTeacher extends Teacher{
    @Override
    public void ready() {
        System.out.println("正在备课ACT");
    }
}